import request from '@/utils/request'

// 查询评论列表
export function listComment(query) {
  return request({
    url: '/pond/fishing/comment/list',
    method: 'get',
    params: query
  })
}

// 查询评论详细
export function getComment(id) {
  return request({
    url: '/pond/fishing/comment/' + id,
    method: 'get'
  })
}

// 删除评论
export function delComment(id) {
  return request({
    url: '/pond/fishing/comment/' + id,
    method: 'delete'
  })
}

// 修改评论状态
export function updateCommentStatus(id, status) {
  return request({
    url: '/pond/fishing/comment/' + id + '/status',
    method: 'put',
    data: { status }
  })
}

// 批量删除评论
export function delComments(ids) {
  return request({
    url: '/pond/fishing/comment/' + ids,
    method: 'delete'
  })
}

// 回复评论
export function replyComment(data) {
  return request({
    url: '/pond/fishing/comment/reply',
    method: 'post',
    data: data
  })
}